Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
atem-connection
Advanced tools
This library is used in the Sofie TV News Studio Automation System for connecting to Blackmagic Design ATEM devices.
For usage by library consumers installation is as easy as:
yarn add atem-connection
For library developers installation steps are as following:
git clone https://github.com/nrkno/tv-automation-atem-connection
yarn
yarn build
If you want to make a contribution, feel free to open a PR.
const { Atem } = require('atem-connection')
const myAtem = new Atem({ externalLog: console.log })
myAtem.connect('192.168.168.240')
myAtem.on('connected', () => {
myAtem.changeProgramInput(3).then((res) => {
console.log(res)
// ProgramInputCommand {
// flag: 0,
// rawName: 'PrgI',
// mixEffect: 0,
// properties: { source: 3 },
// resolve: [Function],
// reject: [Function] }
})
console.log(myAtem.state)
})
myAtem.on('stateChanged', function(err, state) {
console.log(state); // catch the ATEM state.
});
connected
This event will be fired once we have connected with the ATEM.
disconnected
Whenever the connection to the ATEM fails and does not recover within 5 seconds this is called.
stateChanged(state)
Whenever a packet from the ATEM is received that changes the state, this event will be fired.
Set debug=true
config option in order to see raw packets. This is especially useful for library developers.
const myAtem = new Atem({ debug: true, externalLog: console.log })
SEND <Buffer 10 14 53 ab 00 00 00 00 00 3a 00 00 01 00 00 00 00 00 00 00>
SEND <Buffer 80 0c 53 ab 00 00 00 00 00 03 00 00>
SEND <Buffer 80 0c 53 ab 00 00 00 00 00 03 00 00>
SEND <Buffer 80 0c 80 0f 00 01 00 00 00 41 00 00>
RECV <Buffer 00 0c 90 60 5f 76 65 72 00 02 00 10>...
This module will run tests by jest (in the future).
$ yarn unit
0.7.0 (2018-10-24)
<a name="0.6.1"></a>
FAQs
Typescript Node.js library for connecting with an ATEM switcher.
The npm package atem-connection receives a total of 1,504 weekly downloads. As such, atem-connection popularity was classified as popular.
We found that atem-connection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.